/*
 *  gles20errors.h
 *  Renderbunny
 *
 *  Created by Holmes Futrell on 1/21/11.
 *  Copyright 2011 __MyCompanyName__. All rights reserved.
 *
 */

#ifndef GLES_20_ERRORS
#define GLES_20_ERRORS

#import <OpenGLES/ES2/gl.h>

#define rb_check_error( s ) inner_rb_check_error( __FILE__, __LINE__, s )
#define rb_check_error_simple() inner_rb_check_error( __FILE__, __LINE__, NULL )

GLenum inner_rb_check_error( const char *file, int line, const char *s );
const char *rbunny_err_to_string(GLenum errorCode);

#endif